package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-06-04
 * Time: 16:05
 */
public class Animal {
    public String name;
    public Animal(String name){
        this.name=name;
    }
    public void eat(){
        System.out.println(name+"正在吃饭。。。");

    }
}
